#ifndef DIESELGENERATOR_H
#define DIESELGENERATOR_H

#include "component.h"

class DieselGenerator : public Component {
    Q_OBJECT
public:
    DieselGenerator(const QString& name,
                    double maxPower = 200.0,
                    double minPower = 50.0,
                    double efficiency = 0.35,
                    QObject* parent = nullptr);

    void update(int timeStep, double dt) override;
    void modifyParameters() override;

    // 获取器方法
    double getMaxPower() const;
    double getMinPower() const;
    double getEfficiency() const;

private:
    double m_maxPower;
    double m_minPower;
    double m_efficiency;
};

#endif // DIESELGENERATOR_H
